package com.farsight.service;

import android.util.Log;

public class KeyService {
	
	static int key = 0;
	
	static {
		System.loadLibrary("key_runtime");
	}
	
	public KeyService() {
        Log.i("KeyService", "Go to get KEY Stub...");
        _init();
    }

    /*
     *  KEY native methods.
     */
    public int read_key() {
        return _read_key();
    }
    
    public int getKeyValue(){
    	key = read_key();
		return key; 	
    }

    private static native int _init();
    private static native int _read_key();
	
}
